package com.smedi.ismedi.authoritymanagement.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @Author: xulinjun
 * @Date: 2021-7-13 19:42
 */
@Data
@Accessors(chain = true)
public class DataPermissionScopeRequest implements Serializable {
    @ApiModelProperty(value = "令牌")
    private String token;

    @ApiModelProperty(value = "数据范围")
    @NotNull(message = "数据范围为空！")
    private Map<String, List<Long>> dataScope;
}
